home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-30 | 3.0 KB | 130 lines | [TEXT/CWIE] |
- // >>> ⌐ 1996-1997 Microsoft Corporation. All rights reserved. <<<
-
- /*
- !CEnumConnectionPoints();
- ªC ----- Enumeration connection points class
- CEnumConnectionPoints methods
-
- DERIVED FROM:
- IEnumConnectionPoints
- */
-
-
- class CEnumConnectionPoints : public IEnumConnectionPoints
- {
- public:
- CEnumConnectionPoints(LArray* ConnectionPoints);
- /* ñ1 Constructor
- ** INPUT:
- ** LArray * the connection points to be enumerated
- */
-
-
- ~CEnumConnectionPoints(void);
- /* ñ1 Destructor
- ** INPUT:
- ** void
- */
-
-
-
- // *** IUnknown methods ***
- STDMETHOD(QueryInterface)(REFIID RefID, void** Obj);
- /* IUnknown method
- ** INPUT:
- ** REFIID the interface id being queried for
- ** void ** pointer to the interface being queried for
- ** RETURNS:
- ** long S_OK - interface found
- ** E_NOINTERFACE - no interface found
- **
- ** Returns a pointer to the specified interface on a component to which a
- ** client currently holds an interface pointer. The following interfaces
- ** are accepted: IID_IEnumConnectionPoints and IID_IUnknown.
- */
-
-
- STDMETHOD_(ULONG, AddRef)(void);
- /* IUnknown method
- ** INPUT:
- ** void
- ** RETURNS:
- ** unsigned long the ref count for the object
- **
- ** Add a reference to this object.
- */
-
-
- STDMETHOD_(ULONG, Release)(void);
- /* IUnknown method
- ** INPUT:
- ** void
- ** RETURNS:
- ** unsigned long the reference count
- **
- ** Decrements the reference count for the calling interface on a object. If
- ** the reference count on the object falls to zero, the object is freed.
- */
-
-
-
- // IEnumConnectionPoints methods
- STDMETHOD(Next)(THIS_ unsigned long NumRequested,
- IConnectionPoint** ConnectionPoint,
- unsigned long* NumReturned);
- /* ñ1 IEnumConnectionPoints method
- ** INPUT:
- ** unsigned long input: the number of connection points requested
- ** IConnectionPoint ** output: the connection points
- ** unsigned long * output: the number of connection points received
- ** RETURNS:
- ** long S_OK - everything is fine
- ** S_FALSE - the number returned differs from that requested
- **
- ** Get the next n connection points where n is the number requested
- ** by the caller.
- */
-
-
- STDMETHOD(Skip)(THIS_ unsigned long cConnections);
- /* ñ1 IEnumConnectionPoints method
- ** INPUT:
- ** unsigned long unused
- ** RETURNS:
- ** long E_NOTIMPL - not implemented
- **
- ** At this time note implemented.
- */
-
-
- STDMETHOD(Reset)(THIS) { return E_NOTIMPL; }
- /* ñ1 IEnumConnectionPoints method
- ** INPUT:
- ** void
- ** RETURNS:
- ** long E_NOTIMPL - not implemented
- **
- ** At this time not implemented
- */
-
-
- STDMETHOD(Clone)(THIS_ IEnumConnectionPoints** Enum);
- /* ñ1 IEnumConnectionPoints method
- ** INPUT:
- ** IEnumConnectionPoints ** unused
- ** RETURNS:
- ** long E_NOTIMPL - not implemented
- **
- ** At this time not implemented
- */
-
-
-
- private:
- unsigned long m_RefCount;
- unsigned long m_Current;
- LArray* m_ConnectionPoints;
-
- };
-
-